import "antd/es/tabs/style";
import _Tabs from "antd/es/tabs";
import "antd/es/space/style";
import _Space from "antd/es/space";
/**
 * background: '#F7F8FA'
 * compact: true
 */
import React from 'react';
import { SearchTable } from '@szzj/ds';
import schema1 from "./schema1";
import schema2 from "./schema2";
import { mockTableList } from "../../../mock";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default (function () {
  var columns1 = [{
    title: 'name',
    dataIndex: ['name', 'last']
  }, {
    title: 'email',
    dataIndex: 'email'
  }, {
    title: 'phone',
    dataIndex: 'phone'
  }, {
    title: 'gender',
    dataIndex: 'gender'
  }, {
    title: '操作',
    fixed: 'right',
    width: 120,
    render: function render() {
      return /*#__PURE__*/_jsxs(_Space, {
        children: [/*#__PURE__*/_jsx("a", {
          children: "\u67E5\u770B"
        }), /*#__PURE__*/_jsx("a", {
          children: "\u7F16\u8F91"
        })]
      });
    }
  }];
  var columns2 = [{
    title: 'country',
    dataIndex: ['location', 'country']
  }, {
    title: 'nat',
    dataIndex: 'nat'
  }, {
    title: '操作',
    fixed: 'right',
    width: 120,
    render: function render() {
      return /*#__PURE__*/_jsx(_Space, {
        children: /*#__PURE__*/_jsx("a", {
          children: "\u5220\u9664"
        })
      });
    }
  }];
  return /*#__PURE__*/_jsx("div", {
    style: {
      padding: 20
    },
    children: /*#__PURE__*/_jsx(_Tabs, {
      animated: true,
      defaultActiveKey: "0",
      tabBarStyle: {
        background: '#fff',
        margin: 0,
        padding: '0 20px'
      }
      // onChange={tabsChange}
      ,
      items: [{
        label: '待审批',
        key: '1',
        children: /*#__PURE__*/_jsx(SearchTable, {
          searchProps: {
            schema: schema1
          },
          tableProps: {
            rowKey: 'id',
            columns: columns1
          },
          request: mockTableList
        })
      }, {
        label: '已审批',
        key: '2',
        children: /*#__PURE__*/_jsx(SearchTable, {
          searchProps: {
            schema: schema2
          },
          tableProps: {
            rowKey: 'id',
            columns: columns2
          },
          request: mockTableList
        })
      }]
    })
  });
});